<template>
	<view class="">
		<view class="">
			<!-- 2.0.19支持autoBack，默认为false -->
			<u-navbar leftText="通知公告" :autoBack="true">
			</u-navbar>
		</view>


		<view class="con-body wrap">
			<view style="width:94%;padding-left:3%">
				<view style="font-weight: bold;font-size: 32rpx;color:#333">{{article.title}}</view>
				<view style="font-size: 24rpx;color:#999;margin:20rpx 0;"><text style="margin-right:30rpx">物业服务中心</text>{{article.time}}</view>
				
				<view class="u-content">
					<u-parse :content="article.content"></u-parse>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	import {getNoticeDetail} from "@/service/noticeService.js";
	export default {
		data() {
			return {
				title: '公告信息',
				article: {}
			};
		},
		onLoad(options) {
			// console.log(options);
			getNoticeDetail({
				id: options.id
			}).then(this.getNewDetail);
		},
		methods: {
			getNewDetail(e) {
				// console.log(e);
				if (e.code == 200) {
					this.title = e.result.title;
					this.article = e.result;
				} else {

				}
			}
		}
	};
</script>

<style>
	page {
		background-color: #fff;
	}

	.u-content {
		margin-top: 20rpx;
		padding: 0rpx 20rpx;
	}
</style>
